package com.richinfo.buddy.common.model;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.richinfo.buddy.common.enums.OrderDirEnum;

public class QueryOrder implements java.io.Serializable {

    /**
     * 升序asc降序desc
     **/
    private OrderDirEnum orderDir;

    /**
     * 数据库排序字段
     **/
    private String orderColumn;

    public QueryOrder() {
    }

    public QueryOrder(String orderColumn, OrderDirEnum orderDir) {
        this.orderColumn = orderColumn;
        this.orderDir = orderDir;
    }

    public OrderDirEnum getOrderDir() {
        return orderDir;
    }

    public void setOrderDir(OrderDirEnum orderDir) {
        this.orderDir = orderDir;
    }

    public String getOrderColumn() {
        return orderColumn;
    }

    public void setOrderColumn(String orderColumn) {
        this.orderColumn = orderColumn;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}
